package cn.lyq.card.data.model

import com.google.gson.annotations.SerializedName
import java.io.Serializable

class AddressInfo : Serializable {
    @SerializedName("id")
    var id = -1

    @SerializedName("truename")
    var trueName: String? = null

    @SerializedName("mobile")
    var mobile: String? = null

    @SerializedName("address")
    var address: String? = null

    @SerializedName("details_address")
    var detailsAddress: String? = null

    @SerializedName("add_time")
    var addTime = 0

    @SerializedName("default")
    var default = 0

    fun getTitle() = "${trueName ?: ""}     ${mobile ?: ""}"

    fun getAddressStr() = "$address $detailsAddress"

    fun isDefault() = default == 1
}